<div id="music_content">
<div id="clients">
	<span>Clients</span><br/>
	<% form_tag(:action => 'update_client', :id => "clients") do -%>
	<select size="5" name="clients[]" id="clients_id">
		<%= 
			render :partial => "show_clients"
		%>
		<%= observe_field("clients_id", :frequency => 0.5, 
				  :update => "content", :url => 
				  { :controller => "music", 
				    :action => 'list' }, 
			  :with => '"client_id=" + value')
		%>
		</select>
	<% end -%>
</div>
<div id="interpreters">
	<span>Interpreters</span><br/>
	<% form_tag(:action => 'update_interpreters', 
			:id => "interpreters") do -%>
	<select size="5" name="interpreters[]" id="interpreters_id">
		<%=
			render :partial => "show_interpreters"
		%>
		<%= observe_field("interpreters_id", :frequency => 0.5, 
				  :update => "content", :url =>
				  { :controller => "music", 
				    :action => "list" }, 
			  :with => '"artist_id=" + value')
		%>
	</select>
	<% end -%>
</div>
<div id="albums">
	<span>Albums</span><br/>
	<% form_tag(:action => 'update_albums', :id => "albums") do -%>
	<select size="5" name="albums[]" id="albums_id">
		<%=
			render :partial => "show_albums"
		%>
		<%= observe_field("albums_id", :frequency => 0.5, 
				  :update => "content", :url =>
				  { :controller => "music", 
				    :action => "list" }, 
			  :with => '"album_id=" + value')
		%>
	</select>
	<% end -%>
</div>
<div id="titles">
	<span>Titles</span><br/>
	<% form_tag(:action => 'update_titles', :id => "titles") do -%>
	<select size="5" name="titles[]" id="titles_id">
		<%=
			render :partial => "show_titles"
		%>
		<%= observe_field("titles_id", :frequency => 0.5, 
				  :update => "content", :url =>
				  { :controller => "music", 
				    :action => "list" }, 
			  :with => '"title_id=" + value')
		%>
	</select>
	<% end -%>
</div>
<div id="playing_controls">
	<%= render :partial => "playing_controls"  %>
</div>

<%= periodically_call_remote(:update => "playing_controls", 
				 :url => { :action => :check_play },
				 :frequency => 8) %>
</div>
